<?php 
  require_once('../head/nav.php');
  $id = $result['deid'];
  $dename = $result['dename'];
  $duty = $result['duty'];
  $activityid = $result['activityid'];
  $dephoto = $result['dephoto'];
  $minister = $result['minister'];
  $member = $result['member'];
?> 
<h1 class="text-center">部门管理编辑</h1>
    <div class="col-sm-9 col-md-10">
      <form method="post" action="Admin.php?c=de&m=deupdate&id=<?php  echo $id;  ?>" enctype="multipart/form-data" class="form-horizontal">
        <input type="hidden" name="id" value="<?php echo $id;?>">
        <div class="form-group">
            <label for="dename" class="col-md-2 col-xs-3 control-label">部门名称</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="dename" placeholder="部门名称" name="dename" value="<?php echo $dename;//echo &row['dename'] ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="duty" class="col-md-2 col-xs-3 control-label">职责</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="duty" placeholder="职责" name="duty" value="<?php echo $duty;//echo &row['duty'] ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="activityid" class="col-md-2 col-xs-3 control-label">活动</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="activityid" placeholder="活动" name="activityid" value="<?php echo $activityid;//echo &row['activityid'] ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="dephoto" class="col-md-2 col-xs-3 control-label">部门照片展示</label>
            <div class="col-md-10 col-xs-9">
              <img src="../images/<?php echo $dephoto;?>" width=100 height=120>
              <input type="file" id="dephoto" name="dephoto">
            </div>
        </div>
        <div class="form-group">
            <label for="minister" class="col-md-2 col-xs-3 control-label">部长</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="minister" placeholder="部长" name="minister" value="<?php echo $minister;//echo &row['minister'] ?>">
            </div>
        </div>
        <div class="form-group">
            <label for="member" class="col-md-2 col-xs-3 control-label">部门成员</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="member" placeholder="活动" name="member" value="<?php echo $member;//echo &row['member'] ?>">
            </div>
        </div>
        <div class="form-group">
              <label class="col-xs-3 col-md-2"></label>
              <div class="col-xs-9 col-md-10 col-md-offset-2 col-xs-offset-3">
                 <input class="btn btn-success" type="submit" value="重置" >
                 <input class="btn btn-danger" name="reset" value="取消" >
              </div>
        </div>
      </form>
    </div>

<?php 
  require_once('../head/footer.php'); 
?>
